<h2>显示购物车信息</h2>
 <?php

 $member  = \Auth::user();

     $shoppingList =\App\B2BProject\Custom\Purchaser\ShoppingCart::where('member_id',$member->id)->get();
     $data=[];
     foreach($shoppingList as $shop){
         $information = $shop->goods->store->member->information;

         $item['companyname']= $information->company;

         $item['store']=$shop->goods->store_id;
         $item['image']=$shop->goods->cover();
         $item['name']=$shop->goods->name;
         $item['goods_spec_id']=$shop->goods_spec_id;
         $item['amount']=$shop->amount;
         $item['price']=$shop->goods->original_price*$shop->goods->getPriceStrategy();

         $item['total']=$item['amount']*$item['price'];
         $data[]=$item;
     }
     //根据商品id查找相应的信息
var_dump($data);



 ?>

<hr>
 <h2>收货人信息</h2>
 <form action="{{route('order.receipt-info')}}" method="post">
     <input type="hidden"  value="{{ csrf_token() }}" name="_token">

     收货人姓名<input type="text" name="name"><br/>
    所在地区
     <select id="province" name="province_id">
         <option value="1">请选择</option>
     </select><br/>
     <select id="city" name="city_id">
         <option value="2">请选择</option>
     </select><br/>
     <select id="country" name="county_id">
         <option value="3">请选择</option>
     </select><br/>
     向西地址<input type="text" name="detail_area"><br/>
     手机号码<input type="text" name="mob_phone"><br/>
     固定电话<input type="text" name="tel_phone"><br/>
     <input type="submit" value="保存收货信息">
 </form>
 <hr>

 <h2>发票信息</h2>





 <h2>增值税信息</h2>


 <form action="{{route('order.invoice-save')}}" method="post">
     <input type="hidden"  value="{{ csrf_token() }}" name="_token">
     单位名称：<input type="text" name="company_name"><br/>
     识别码：<input type="text" name="code"><br/>
     注册地址：<input type="text" name="address"><br/>
     注册电话：<input type="text" name="phone"><br/>
     开户银行：<input type="text" name="bank"><br/>
     银行账户：<input type="text" name="bank_account"><br/>
     收票人信息：<input type="text" name="bill_to_name"><br/>
     收票人地址：<input type="text" name="bill_to_address"><br/>
     收票认手机：<input type="text" name="bill_to_phone"><br/>
     收票认省份：<input type="text" name="bill_to_province"><br/>

     发票类型：<input type="text" name="type"><br/>
     发票名称：<input type="text" name="subject"><br/>

     <input type="submit" value="增值税信息">
 </form>



 <hr>

 <h2>生成订单</h2>



 <form action="{{route('order.create-order')}}" method="post">
     <input type="hidden"  value="{{ csrf_token() }}" name="_token">



     <input type="submit" value="生成订单">
 </form>
